<?
include './lib_dbconnection.php';
$place_id = $_GET['place_id'];
$query_result = mysql_query("SELECT place_name, place_photo_path, place_detailed_description, place_latitude, place_longitude, place_telephone, place_address, place_email, place_site FROM places WHERE place_id=$place_id;");
if($query_result){
	list($place_name, $placePhotoPath, $placeDetailedDescription, $place_latitude, $place_longitude, $place_telephone, $place_address, $place_email, $place_site) = mysql_fetch_row($query_result);
	$result = array(
		"place_photo_path" => $placePhotoPath,
		"place_detailed_description" => $placeDetailedDescription,
		"place_name" => $place_name,
		"place_latitude" => $place_latitude,
		"place_longitude" => $place_longitude,
		"place_telephone" => $place_telephone,
		"place_address" => $place_address,
		"place_email" => $place_email,
		"place_site" => $place_site,
		);
	print(json_encode($result));
}
?>